package com.scse.bms.service;

import com.scse.bms.entity.TypeDO;
import com.scse.bms.mapper.TypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Title: TypeServiceImpl
 * @Author: 吴赠禹
 * @Date: 2021/1/13 14:30
 * @Version: 1.0
 * @Description: TODO
 */

@Service("typeService")
@Transactional(rollbackFor = Exception.class)
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<TypeDO> selectAll() {
        return typeMapper.selectAll();
    }

}
